(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f44b62a"],{"23f7":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticStyle:{"font-size":"14px",position:"absolute",width:"calc(100% - 20px)",height:"calc(100% - 50px)",background:"#ffffff","margin-right":"10px"}},[a("div",{staticClass:"project"},[a("div",{staticClass:"item"},[a("div",{staticClass:"item-left"},[a("div",[a("span",[e._v(e._s(e.generateTitle("是否正在缓存")))])])]),a("div",{staticClass:"item-right"},[a("el-switch",{attrs:{size:"small",value:e.isCache,disabled:""}})],1)]),a("div",{staticClass:"item"},[a("div",{staticClass:"item-left"},[a("div",[a("span",[e._v(e._s(e.generateTitle("发送数量")))])])]),a("div",{staticClass:"item-right"},[a("el-input",{attrs:{size:"small",value:e.sendCount,disabled:!0}})],1)]),a("div",{staticClass:"item"},[a("div",{staticClass:"item-left"},[a("div",[a("span",[e._v(e._s(e.generateTitle("缓存数量")))])])]),a("div",{staticClass:"item-right"},[a("el-input",{attrs:{size:"small",value:e.cacheCount,disabled:!0}})],1)]),a("div",{staticClass:"item"},[a("div",{staticClass:"item-left"},[a("div",[a("span",[e._v(e._s(e.generateTitle("发送速度")))])])]),a("div",{staticClass:"item-right"},[a("el-input",{attrs:{size:"small",value:e.sendSpeek,disabled:!0}})],1)]),a("div",{staticClass:"item"},[a("div",{staticClass:"item-left"},[a("div",[a("span",[e._v(e._s(e.generateTitle("缓存速度")))])])]),a("div",{staticClass:"item-right"},[a("el-input",{attrs:{size:"small",value:e.cacheSpeek,disabled:!0}})],1)]),a("div",{staticClass:"item"},[a("div",{staticClass:"item-left"},[a("div",[a("span",[e._v(e._s(e.generateTitle("缓存大小")))])])]),a("div",{staticClass:"item-right"},[a("el-input",{attrs:{size:"small",value:e.cacheSize,disabled:!0}})],1)])])])])},s=[],n=a("6a48"),c=a("79fa"),r={data:function(){return{refreshFrequency:"3",interval:-1,sendCount:0,cacheCount:0,cacheSize:0,sendSpeek:0,cacheSpeek:0,isCache:!1}},created:function(){this.updateCacheViewData()},mounted:function(){this.updateInterval()},beforeDestroy:function(){-1!=this.interval&&clearInterval(this.interval)},methods:{generateTitle:c["a"],updateInterval:function(){-1!=this.interval&&clearInterval(this.interval);var e=1e3*parseFloat(this.refreshFrequency);this.interval=setInterval(this.updateCacheViewData,e)},updateCacheViewData:function(){var e=this;Object(n["a"])().then((function(t){t&&(e.sendCount=t.SendCount,e.cacheCount=t.CacheCount,e.cacheSize=t.CacheSize,e.sendSpeek=t.SendSpeed,e.cacheSpeek=t.CacheSpeed,e.isCache=t.IsCache)}))}}},l=r,d=(a("29ca"),a("2877")),u=Object(d["a"])(l,i,s,!1,null,"e4caf51c",null);t["default"]=u.exports},"29ca":function(e,t,a){"use strict";a("58d8")},"58d8":function(e,t,a){},"6a48":function(e,t,a){"use strict";a.d(t,"e",(function(){return n})),a.d(t,"c",(function(){return c})),a.d(t,"d",(function(){return r})),a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return d}));var i=a("b775"),s=a("83d6");function n(){return Object(i["a"])({url:Object(s["apiUrl"])()+"/dataservice/webapi/IOTService/MqttIsConnected",method:"post",data:""})}function c(){return Object(i["a"])({url:Object(s["apiUrl"])()+"/dataservice/webapi/IOTService/GetUploadPropertyCount",method:"post",data:""})}function r(){return Object(i["a"])({url:Object(s["apiUrl"])()+"/dataservice/webapi/IOTService/GetUploadSpeed",method:"post",data:""})}function l(e){return Object(i["a"])({url:Object(s["apiUrl"])()+"/dataservice/webapi/IOTService/GetIotPropertiesData",method:"post",data:e})}function d(){return Object(i["a"])({url:Object(s["apiUrl"])()+"/dataservice/webapi/IOTService/GetCacheViewData",method:"post",data:{}})}}}]);